package com.ruoyi.db.ums.domain;

import com.ruoyi.db.pms.domain.PmsGoods;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * 会员收藏对象 ums_collect
 *
 * @author ruoyi
 * @date 2020-04-23
 */

@ApiModel("会员收藏实体类")
@Data
@EqualsAndHashCode(callSuper=true)
public class UmsCollect extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("收藏ID")
    private Long id;

    @ApiModelProperty("收藏用户ID")
    @Excel(name = "收藏用户ID")
    @NotBlank(message = "收藏用户ID不能为空")
    private Long userId;

    @ApiModelProperty("收藏对象ID")
    @Excel(name = "收藏对象ID")
    @NotBlank(message = "收藏对象ID不能为空")
    private Long valueId;

    @ApiModelProperty("收藏类型（0是商品ID 1是专题ID）")
    @Excel(name = "收藏类型", readConverterExp = "0=是商品ID,1=是专题ID")
    @NotBlank(message = "收藏类型不能为空")
    private Integer type;

    @ApiModelProperty("创建时间")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime addTime;

    @ApiModelProperty("逻辑删除")
    @Excel(name = "逻辑删除")
    private Integer deleted;

    @ApiModelProperty("商品信息")
    private PmsGoods good;
}
